package com.chalk.config;

import io.protostuff.runtime.RuntimeSchema;

/**
 * 序列化
 * @author Zhaob
 */
public class MyRuntimeSchema<T> {

    private RuntimeSchema<T> goodsRuntimeSchema;


    public MyRuntimeSchema(Class aClass) {
        RuntimeSchema<T> seckillSchemaVar = RuntimeSchema.createFrom(aClass);
        setGoodsRuntimeSchema(seckillSchemaVar);
    }

    public RuntimeSchema<T> getGoodsRuntimeSchema() {
        return goodsRuntimeSchema;
    }

    private void setGoodsRuntimeSchema(RuntimeSchema<T> goodsRuntimeSchema) {
        this.goodsRuntimeSchema = goodsRuntimeSchema;
    }
}
